<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link th:href="@{/uploadeFile/css/common.css}"  rel="stylesheet"/>
<link  th:href="@{/uploadeFile/css/index.css}"   rel="stylesheet"/>
<script src="http://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"></script>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-dynamic-edit" th:object="${dynamic}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户ID号：</label>
                <div class="col-sm-8">
                    <input id="memberId" name="memberId" th:field="*{memberId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">内容：</label>
                <div class="col-sm-8">
                    <input id="content" name="content" th:field="*{content}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">	
                <label class="col-sm-3 control-label">评论数量：</label>
                <div class="col-sm-8">
                    <input id="commentsNum" name="commentsNum" th:field="*{commentsNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">发布时间：</label>
                <div class="col-sm-8">
                    <input id="createDate" name="createDate" th:field="*{createDate}" class="form-control" type="date">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">图片或视频：</label>
                <div class="col-sm-8">
                    <section class=" img-section" data-limit="5">
                        <input type="hidden" id="photo" name="picture" class="getvalue" value="">
                     <!--   <p class="up-p"><span class="up-span">图片或视频：</span></p>-->
                        <div class="z_photo upimg-div clear" >
                            <section class="z_file fl">
                                <img th:src="@{/uploadeFile/img/a11.png}"  class="add-img">
                                <input type="file" name="file" id="file" class="file" value="" accept="*" multiple />
                            </section>
                        </div>
                    </section>
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "sj/dynamic"
		$("#form-dynamic-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-dynamic-edit').serialize());
	        }
	    }
	</script>
    <script  th:src="@{/uploadeFile/js/imgUp.js}"></script>
</body>
</html>
